<!-- register.html -->
{% extends "base.html" %}
{% block content %}
<div class="row justify-content-center">
    <div class="col-md-6">
        <div class="card">
            <div class="card-body">
                <h3 class="card-title text-center">用户注册</h3>
                <form method="POST">
                    <div class="mb-3">
                        <label class="form-label">用户名</label>
                        <input type="text" name="username" class="form-control" required>
                    </div>
                    <div class="mb-3">
                        <label class="form-label">密码</label>
                        <input type="password" name="password" class="form-control" required>
                    </div>
                    <button type="submit" class="btn btn-success w-100">注册</button>
                </form>
                <div class="mt-3 text-center">
                    <a href="{{ url_for('login') }}">已有账号？去登录</a>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}